package com.yx.sys.service;

import com.yx.common.vo.Result;
import com.yx.sys.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息 服务类
 * </p>
 *
 * @author yx
 * @since 2023-02-14
 */
public interface IUserService extends IService<User> {

    Map<String, Object> login(User user);

    Map<String, Object> getUserInfo(String token);

    void logout(String token);

    Result<?> emailVerification(String uEmail);

    String addUser(User user);

    User getUserById(Integer uId);

    void updateUser(User user);

    void deleteUserById(Integer uId);

    List<?> getUserByNickname(String nickname);

    void registerUser(Map<String,?> user);

    String resetPassword(Map<String,?> user);
}
